package com.top.mall.main.mine.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.top.mall.R
import com.top.mall.entity.ShopList

class ShopAddressAdapter : BaseQuickAdapter<ShopList, BaseViewHolder>(R.layout.item_shop_address) {
    override fun convert(holder: BaseViewHolder, item: ShopList) {
        holder.setText(R.id.tvShopAddressName, item.shop_name)
            .setText(
                R.id.tvShopAddressTime,
                "${item.business_time.start_time}-${item.business_time.end_time}"
            )
            .setText(R.id.tvShopAddressDis, "${item.distance}m")
            .setText(R.id.tvShopAddressArea, item.areaAddress)
    }
}


class MineInvoiceAdapter : BaseQuickAdapter<String, BaseViewHolder>(R.layout.item_mine_invoice) {
    override fun convert(holder: BaseViewHolder, item: String) {

    }
}